package com.ztq.test.userinfo.action;

import com.ztq.test.system.util.CommonUtils;
import com.ztq.test.userinfo.entity.T_friends;
import com.ztq.test.userinfo.service.UserHandlerService;

/**
 * @author: ztq
 * @date: 2016-2-1 下午04:25:29
 * @description: 这个action类主要是获取用户的一些信息，包括用户个人信息、用户好友信息、好友聊天信息等
 * @version:1.0
 */
public class UserHandlerAction {
	private T_friends friends;
	private UserHandlerService userHandlerService;

	public UserHandlerService getUserHandlerService() {
		return userHandlerService;
	}

	public void setUserHandlerService(UserHandlerService userHandlerService) {
		this.userHandlerService = userHandlerService;
	}

	public T_friends getFriends() {
		return friends;
	}

	public void setFriends(T_friends friends) {
		this.friends = friends;
	}

	//获取用户的好友信息
	public String fetchUserFriendship(){
		String result = null;
		result = userHandlerService.fetchUserFriendship(friends);
		
		System.out.println("result = " + result);
		
		CommonUtils.responseWrite(result);
		return null;
	}
}